projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e475e
)
Fix file lock issue (Bug#46397)
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 10 Feb 2021 18:50:44 +0000
(10:50 -0800)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 10 Feb 2021 18:58:40 +0000
(10:58 -0800)
* src/filelock.c (current_lock_owner):
Also treat ENOTDIR as meaning the lock file does not exist.
src/filelock.c
patch
|
blob
|
history
diff --git
a/src/filelock.c
b/src/filelock.c
index 35baa0c6668353d7744cacd9d32cc31808b2012d..373fc00a42c00efad687e0eed362e676d53a5ec6 100644
(file)
--- a/
src/filelock.c
+++ b/
src/filelock.c
@@
-532,7
+532,7
@@
current_lock_owner (lock_info_type *owner, char *lfname)
/* If nonexistent lock file, all is well; otherwise, got strange error. */
lfinfolen = read_lock_data (lfname, owner->user);
if (lfinfolen < 0)
- return errno == ENOENT ? 0 : errno;
+ return errno == ENOENT
|| errno == ENOTDIR
? 0 : errno;
if (MAX_LFINFO < lfinfolen)
return ENAMETOOLONG;
owner->user[lfinfolen] = 0;